package com.xiaoc.bulldozer.service;

import com.xiaoc.bulldozer.common.dto.WeixinUserDto;
import com.xiaoc.bulldozer.common.dto.WxCodeConfig;

import java.io.File;

public interface WxService {

    /**
     * 获取accessToken
     * @return
     */
    public String getAccessToken();

    /**
     * 生成小程序码
     * 
     * @param accessToken
     * @param wxCodeConfig
     * @param wxCodeFile
     * @return
     */
    public File generateWxCode(String accessToken, WxCodeConfig wxCodeConfig, File wxCodeFile);

    public String getPhoneNumber(WeixinUserDto user, String encryptedData, String iv) throws Exception;
}
